/ Assembly List / LJCDBClientLib / ObjectManager`2 / Retrieve

Namespace - LJCDBClientLib


Parameters
keyColumns - The record containing the key field values.
propertyNames - The incuded column property names.
filters - The filter values.
joins - The join values.

Returns

The data object.

Syntax

C#
public TData Retrieve(DbColumns keyColumns, List<String> propertyNames = null, DbFilters filters = null, DbJoins joins = null)

Retrieves a record from the database. (E)

Example

C#
// Retrieves a Person record.
private static Person Retrieve(ObjectManager<Person, Persons> personManager)
{
  Person retValue;

  // Create Key Columns.
  var keyColumns = new DbColumns()
  {
    Name = "TestName"
  };

  // Retrieve the record.
  retValue = personManager.Retrieve(keyColumns);
  return retValue;
}

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.